﻿using ChatBackend.Entity;
using ChatBackend.Entity.Entities;
using SqlSugar;

namespace ChatBackend.DBContext.LoginRepository
{
    public class LoginRepository : BaseRepository<UserEntity>, ILoginRepository
    {
        private readonly ISqlSugarClient _db;

        public LoginRepository(ISqlSugarClient db) : base(db)
        {
            _db = db;
        }

        ///// <summary>
        ///// 新增用户
        ///// </summary>
        ///// <returns></returns>
        //public Task<int> AddUserAsync(AddUserDto para)
        //{
        //    UserEntity obj = new UserEntity(para.UserName, para.UID, para.PWD, para.Gender);
        //    var result = _db.Insertable(obj).ExecuteCommandAsync();
        //    return result;
        //}

        //public Task<int> DeleteUserAsync(long Id)
        //{

        //}
    }
}